package form

import com.fasterxml.jackson.annotation.JsonProperty

/**
 * 登录表单
 * @author BX-Gin
 * @since 2024/11/19 09:24
 */
class LoginForm(
    @get: JsonProperty("account_name")
    val username: String,
    @get: JsonProperty("passwd")
    val password: String,
) {
    val source = if (username.contains("@")) "mail" else "phone"
}